package com.cait.dutyfree.pojo;

import java.io.Serializable;

public class ShoppingCartItem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Product product;
	private Integer count;

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ShoppingCartItem) {
			ShoppingCartItem shoppingObj = (ShoppingCartItem) obj;
			if (this.getProduct() == shoppingObj.getProduct()) {
				return true;
			} else {
				return false;
			}
		} else {
			return false;
		}
	}

}
